package ru.silviasaint.fridge.server.bean.impl;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable
public class Data extends Substance{

    @DatabaseField(canBeNull= false)
	private Integer substanceId;
    @DatabaseField(canBeNull= false)
	private Integer internalId;
    @DatabaseField(foreign=true)
    private Substance substance;

    @DatabaseField(canBeNull= false)
    private byte[] data;
	public Integer getInternalId() {
		return internalId;
	}
	public void setInternalId(Integer internalId) {
		this.internalId = internalId;
	}
	public Integer getSubstanceId() {
		return substanceId;
	}
	public void setSubstanceId(Integer substanceId) {
		this.substanceId = substanceId;
	}
	public Substance getSubstance() {
		return substance;
	}
	public void setSubstance(Substance substance) {
		this.substance = substance;
	}
	public byte[] getData() {
		return data;
	}
	public void setData(byte[] data) {
		this.data = data;
	}

}
